//
//  BIDBaseCollectionView.h
//  HJGJCommunity
//
//  Created by mal on 2017/6/16.
//  Copyright © 2017年 mal. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol BIDBaseCollectionViewDelegate <NSObject>

@optional
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView;

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section;

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath;

@optional
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath;

@optional
- (void)refresh;

@optional
- (void)loadMoreData;

@end

@interface BIDBaseCollectionView : UICollectionView

@property (assign, nonatomic) id<BIDBaseCollectionViewDelegate> myDelegate;

- (void)endRefresh;

- (void)removeLoadMoreDataView;

- (void)hasNoMoreData;
- (void)hasMoreData;

/**
 *设置下拉刷新视图的背景颜色
 */
- (void)setRefreshViewBgColor:(UIColor*)bgColor;

@end
